<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
SoyFileSet (Soy Lite)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SoyFileSet (Soy Lite)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/google/template/soy/SoyFileSet.Builder.html" title="class in com.google.template.soy"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/google/template/soy/SoyFileSet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SoyFileSet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.google.template.soy</FONT>
<BR>
Class SoyFileSet</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.template.soy.SoyFileSet</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>SoyFileSet</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
</PRE>

<P>
Represents a complete set of Soy files for compilation as one bundle. The files may depend on
 each other but should not have dependencies outside of the set.

 <p> Note: Soy file (or resource) contents must be encoded in UTF-8.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.Builder.html" title="class in com.google.template.soy">SoyFileSet.Builder</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Builder for a <code>SoyFileSet</code>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToJavaObj()">compileToJavaObj</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu()"><CODE>compileToTofu()</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToJavaObj(boolean)">compileToJavaObj</A></B>(boolean&nbsp;useCaching)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)"><CODE>compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToJavaSrc(com.google.template.soy.javasrc.SoyJavaSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)">compileToJavaSrc</A></B>(<A HREF="../../../../com/google/template/soy/javasrc/SoyJavaSrcOptions.html" title="class in com.google.template.soy.javasrc">SoyJavaSrcOptions</A>&nbsp;javaSrcOptions,
                 <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Warning: The Java Src backend is experimental (incomplete, repetitive, untested, undocumented).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToJsSrc(com.google.template.soy.jssrc.SoyJsSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)">compileToJsSrc</A></B>(<A HREF="../../../../com/google/template/soy/jssrc/SoyJsSrcOptions.html" title="class in com.google.template.soy.jssrc">SoyJsSrcOptions</A>&nbsp;jsSrcOptions,
               <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles this Soy file set into JS source code files and returns these JS files as a list of
 strings, one per file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/javasrc/SoyTemplateRuntimes.html" title="interface in com.google.template.soy.javasrc">SoyTemplateRuntimes</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToRuntimes(java.lang.String, com.google.template.soy.javasrc.SoyJavaSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)">compileToRuntimes</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;bundleName,
                  <A HREF="../../../../com/google/template/soy/javasrc/SoyJavaSrcOptions.html" title="class in com.google.template.soy.javasrc">SoyJavaSrcOptions</A>&nbsp;options,
                  <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Warning: The Java Src backend is experimental (incomplete, repetitive, untested, undocumented).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu()">compileToTofu</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)">compileToTofu</A></B>(<A HREF="../../../../com/google/template/soy/tofu/SoyTofuOptions.html" title="class in com.google.template.soy.tofu">SoyTofuOptions</A>&nbsp;tofuOptions)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#extractMsgs()">extractMsgs</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extracts all messages from this Soy file set into a SoyMsgBundle (which can then be turned
 into an extracted messages file with the help of a SoyMsgBundleHandler).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.common.collect.ImmutableMap&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/google/template/soy/SoyFileSet.html#generateParseInfo(java.lang.String, java.lang.String)">generateParseInfo</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;javaPackage,
                  <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;javaClassNameSource)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates Java classes containing parse info (param names, template names, meta info).</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="generateParseInfo(java.lang.String, java.lang.String)"><!-- --></A><H3>
generateParseInfo</H3>
<PRE>
public com.google.common.collect.ImmutableMap&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>generateParseInfo</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;javaPackage,
                                                                               <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;javaClassNameSource)
                                                                        throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD>Generates Java classes containing parse info (param names, template names, meta info). There
 will be one Java class per Soy file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>javaPackage</CODE> - The Java package for the generated classes.<DD><CODE>javaClassNameSource</CODE> - Source of the generated class names. Must be one of "filename",
     "namespace", or "generic".
<DT><B>Returns:</B><DD>A map from generated file name (of the form "<*>SoyInfo.java") to generated file
     content.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.</DL>
</DD>
</DL>
<HR>

<A NAME="extractMsgs()"><!-- --></A><H3>
extractMsgs</H3>
<PRE>
public <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A> <B>extractMsgs</B>()
                         throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD>Extracts all messages from this Soy file set into a SoyMsgBundle (which can then be turned
 into an extracted messages file with the help of a SoyMsgBundleHandler).
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A SoyMsgBundle containing all the extracted messages (locale "en").
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.</DL>
</DD>
</DL>
<HR>

<A NAME="compileToTofu()"><!-- --></A><H3>
compileToTofu</H3>
<PRE>
public <A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A> <B>compileToTofu</B>()
                      throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD>Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates. The resulting <code>SoyTofu</code> does not cache intermediate results after
 substitutions from the SoyMsgBundle and the SoyCssRenamingMap.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The resulting <code>SoyTofu</code> object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)"><CODE>compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)"><!-- --></A><H3>
compileToTofu</H3>
<PRE>
public <A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A> <B>compileToTofu</B>(<A HREF="../../../../com/google/template/soy/tofu/SoyTofuOptions.html" title="class in com.google.template.soy.tofu">SoyTofuOptions</A>&nbsp;tofuOptions)
                      throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD>Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tofuOptions</CODE> - The compilation options for the Tofu backend.
<DT><B>Returns:</B><DD>The resulting <code>SoyTofu</code> object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.</DL>
</DD>
</DL>
<HR>

<A NAME="compileToJavaObj()"><!-- --></A><H3>
compileToJavaObj</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT>public <A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A> <B>compileToJavaObj</B>()
                         throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu()"><CODE>compileToTofu()</CODE></A>.</I>
<P>
<DD>Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates. The resulting <code>SoyTofu</code> does not cache intermediate results after
 substitutions from the SoyMsgBundle and the SoyCssRenamingMap.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The result of compiling this Soy file set into a Java object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu()"><CODE>compileToTofu()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileToJavaObj(boolean)"><!-- --></A><H3>
compileToJavaObj</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
</FONT>public <A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html" title="interface in com.google.template.soy.tofu">SoyTofu</A> <B>compileToJavaObj</B>(boolean&nbsp;useCaching)
                         throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)"><CODE>compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)</CODE></A>.</I>
<P>
<DD>Compiles this Soy file set into a Java object (type <code>SoyTofu</code>) capable of rendering the
 compiled templates.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>useCaching</CODE> - Whether the resulting SoyTofu instance should cache intermediate results
     after substitutions from the SoyMsgBundle and the SoyCssRenamingMap. It is recommended to
     set this param to true if you're planning to reuse the SoyTofu instance to render multiple
     times.

     <p> Specifically, if this param is set to true, then
     (a) The first time the SoyTofu is used with a new combination of SoyMsgBundle and
         SoyCssRenamingMap, the render will be slower. (Note that this first-render slowness can
         be eliminated by calling the method <A HREF="../../../../com/google/template/soy/tofu/SoyTofu.html#addToCache(com.google.template.soy.msgs.SoyMsgBundle, com.google.template.soy.shared.SoyCssRenamingMap)"><CODE>SoyTofu.addToCache(com.google.template.soy.msgs.SoyMsgBundle, com.google.template.soy.shared.SoyCssRenamingMap)</CODE></A> to prime the cache.)
     (b) The subsequent times the SoyTofu is used with an already-seen combination of
         SoyMsgBundle and SoyCssRenamingMap, the render will be faster.

     <p> The cache will use memory proportional to the number of distinct combinations of
     SoyMsgBundle and SoyCssRenamingMap your app uses (note most apps have at most one
     SoyCssRenamingMap). If you find memory usage to be a problem, you can manually control the
     contents of the cache. See <CODE>SoyTofu.Renderer#setDontAddToCache</CODE> for details.
<DT><B>Returns:</B><DD>The result of compiling this Soy file set into a Java object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)"><CODE>compileToTofu(com.google.template.soy.tofu.SoyTofuOptions)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="compileToRuntimes(java.lang.String, com.google.template.soy.javasrc.SoyJavaSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
compileToRuntimes</H3>
<PRE>
public <A HREF="../../../../com/google/template/soy/javasrc/SoyTemplateRuntimes.html" title="interface in com.google.template.soy.javasrc">SoyTemplateRuntimes</A> <B>compileToRuntimes</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;bundleName,
                                             <A HREF="../../../../com/google/template/soy/javasrc/SoyJavaSrcOptions.html" title="class in com.google.template.soy.javasrc">SoyJavaSrcOptions</A>&nbsp;options,
                                             <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD>Warning: The Java Src backend is experimental (incomplete, repetitive, untested, undocumented).
 <p>
 Returns a bundle of templates compiled using the experimental java compiler that will be
 automatically recompiled if the underlying Soy sources are modified.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>The compiled result.</DL>
</DD>
</DL>
<HR>

<A NAME="compileToJavaSrc(com.google.template.soy.javasrc.SoyJavaSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
compileToJavaSrc</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>compileToJavaSrc</B>(<A HREF="../../../../com/google/template/soy/javasrc/SoyJavaSrcOptions.html" title="class in com.google.template.soy.javasrc">SoyJavaSrcOptions</A>&nbsp;javaSrcOptions,
                               <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)</PRE>
<DL>
<DD>Warning: The Java Src backend is experimental (incomplete, repetitive, untested, undocumented).

 <p> To use Soy from Java, you should call <A HREF="../../../../com/google/template/soy/SoyFileSet.html#compileToTofu()"><CODE>compileToTofu()</CODE></A> to obtain a
 <code>SoyTofu</code> object that will be able to render any public template in this Soy file set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>javaSrcOptions</CODE> - The compilation options for the Java Src output target.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the Soy
     source.
<DT><B>Returns:</B><DD>Java source code in one big ugly blob. Can be put inside any class without needing
     additional imports because all class names in the generated code are fully qualified.</DL>
</DD>
</DL>
<HR>

<A NAME="compileToJsSrc(com.google.template.soy.jssrc.SoyJsSrcOptions, com.google.template.soy.msgs.SoyMsgBundle)"><!-- --></A><H3>
compileToJsSrc</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>compileToJsSrc</B>(<A HREF="../../../../com/google/template/soy/jssrc/SoyJsSrcOptions.html" title="class in com.google.template.soy.jssrc">SoyJsSrcOptions</A>&nbsp;jsSrcOptions,
                                   <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                                   <A HREF="../../../../com/google/template/soy/msgs/SoyMsgBundle.html" title="interface in com.google.template.soy.msgs">SoyMsgBundle</A>&nbsp;msgBundle)
                            throws <A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></PRE>
<DL>
<DD>Compiles this Soy file set into JS source code files and returns these JS files as a list of
 strings, one per file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>jsSrcOptions</CODE> - The compilation options for the JS Src output target.<DD><CODE>msgBundle</CODE> - The bundle of translated messages, or null to use the messages from the Soy
     source.
<DT><B>Returns:</B><DD>A list of strings where each string represents the JS source code that belongs in one
     JS file. The generated JS files correspond one-to-one to the original Soy source files.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../com/google/template/soy/base/SoySyntaxException.html" title="class in com.google.template.soy.base">SoySyntaxException</A></CODE> - If a syntax error is found.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/google/template/soy/SoyFileSet.Builder.html" title="class in com.google.template.soy"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/google/template/soy/SoyFileSet.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SoyFileSet.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

        
          <div id="footer">
            <div id="footerlogo" style="float:left">
              <img src="http://www.google.com/images/art.gif"
                   alt="Google colored balls">
            </div>
            <div id="copyright" style="float:left">
              <p>
                &copy; 2009 Google -
                <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
                <a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> -
                <a href="http://www.google.com/about.html">About Google</a>
              </p>
            </div>
          </div>
        
      
</BODY>
</HTML>
